package com.bit.springmybatis;

import com.bit.springmybatis.Mapper.UserInfoMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class SpringMybatisApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(SpringMybatisApplication.class, args);
        context.getBean(UserInfoMapper.class).selectAll().stream().forEach(x-> System.out.println(x));
    }

}
